package com.springboot.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.springboot.base.common.BusinessException;
import com.springboot.base.model.Category;

import java.util.List;

public interface ICategoryService extends IService<Category>{

    IPage<Category> qryListByPage(Page<Category> page);

    Category create(Category categoryModel) throws BusinessException;

    List<Category> selectAll();

    int countAllCategory();
}
